package com.rope.backEnd.service.impl;

import com.rope.backEnd.mapper.UserMapper;
import com.rope.backEnd.pojo.User;
import com.rope.backEnd.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    public List<User> list() {
        return userMapper.list();
    }

    public User userSul(String username) {
        return userMapper.userSul(username);
    }
}
